provider "alicloud" {
  region = "cn-hangzhou"
}

module "app" {
  source = "./modules/app"
  docker_pw = var.docker_pw
  instance_number = var.instance_number
  iac_portal=var.iac_portal
  ct_runner=var.ct_runner
  ct_worker=var.ct_worker
  iac_web=var.iac_web
}

module "slb" {
  source = "./modules/slb"
  resource_group_id = var.resource_group_id
  depends_on = [
    module.app
  ]
}

output "slb_address" {
  value = module.slb.address
}
